import axios from 'axios';

const http = axios.create({
  baseURL: '/api', // 设置 baseURL 为代理路径
  timeout: 20000, // 请求超时设置
  headers: {
    'Content-Type': 'application/json',
  },
});

export default http;
